package com.example.leaderapplication.Bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class FindShiftsListResultBean implements Parcelable {

    /**
     * code : 200
     * message : 查询列表数据成功
     * data : {"pageCount":136,"recordCount":136,"dataList":[{"updatedDate":"2020-07-02 11:20:29","updatedUser":"administrator(administrator)","shiftsId":10000000069007,"shiftsDate":"2020-07-08","routeName":"桃花岛登岛","shiftsNo":"10000000025001693","businessOrgShortName":"金鸡湖风景区","scenicSpotsName":"wwewe","projectShortName":"桃花岛","shipDockName":"测试码头","leaveTime":"22:20","shipName":"测试船舶","shiftsCapacity":30,"shiftsNature":"","shipCapacity":30,"stopSellTime":1,"flag":1,"flagStr":"适航"}]}
     */

    private String code;
    private String message;
    private DataBean data;

    protected FindShiftsListResultBean(Parcel in) {
        code = in.readString();
        message = in.readString();
    }

    public static final Creator<FindShiftsListResultBean> CREATOR = new Creator<FindShiftsListResultBean>() {
        @Override
        public FindShiftsListResultBean createFromParcel(Parcel in) {
            return new FindShiftsListResultBean(in);
        }

        @Override
        public FindShiftsListResultBean[] newArray(int size) {
            return new FindShiftsListResultBean[size];
        }
    };

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(code);
        dest.writeString(message);
    }

    public static class DataBean implements Parcelable {
        /**
         * pageCount : 136
         * recordCount : 136
         * dataList : [{"updatedDate":"2020-07-02 11:20:29","updatedUser":"administrator(administrator)","shiftsId":10000000069007,"shiftsDate":"2020-07-08","routeName":"桃花岛登岛","shiftsNo":"10000000025001693","businessOrgShortName":"金鸡湖风景区","scenicSpotsName":"wwewe","projectShortName":"桃花岛","shipDockName":"测试码头","leaveTime":"22:20","shipName":"测试船舶","shiftsCapacity":30,"shiftsNature":"","shipCapacity":30,"stopSellTime":1,"flag":1,"flagStr":"适航"}]
         */

        private int pageCount;
        private int recordCount;
        private List<DataListBean> dataList;

        protected DataBean(Parcel in) {
            pageCount = in.readInt();
            recordCount = in.readInt();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel in) {
                return new DataBean(in);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };

        public int getPageCount() {
            return pageCount;
        }

        public void setPageCount(int pageCount) {
            this.pageCount = pageCount;
        }

        public int getRecordCount() {
            return recordCount;
        }

        public void setRecordCount(int recordCount) {
            this.recordCount = recordCount;
        }

        public List<DataListBean> getDataList() {
            return dataList;
        }

        public void setDataList(List<DataListBean> dataList) {
            this.dataList = dataList;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(pageCount);
            dest.writeInt(recordCount);
        }

        public static class DataListBean implements Parcelable{
            /**
             * updatedDate : 2020-07-02 11:20:29
             * updatedUser : administrator(administrator)
             * shiftsId : 10000000069007
             * shiftsDate : 2020-07-08
             * routeName : 桃花岛登岛
             * shiftsNo : 10000000025001693
             * businessOrgShortName : 金鸡湖风景区
             * scenicSpotsName : wwewe
             * projectShortName : 桃花岛
             * shipDockName : 测试码头
             * leaveTime : 22:20
             * shipName : 测试船舶
             * shiftsCapacity : 30
             * shiftsNature :
             * shipCapacity : 30
             * stopSellTime : 1
             * flag : 1
             * flagStr : 适航
             */

            private String updatedDate;
            private String updatedUser;
            private long shiftsId;
            private String shiftsDate;
            private String routeName;
            private String shiftsNo;
            private String shiftsName;
            private String businessOrgShortName;
            private String scenicSpotsName;
            private String projectShortName;
            private String shipDockName;
            private String leaveTime;
            private String shipName;
            private int shiftsCapacity;
            private String shiftsNature;
            private int shipCapacity;
            private int stopSellTime;
            private int flag;
            private String flagStr;

            protected DataListBean(Parcel in) {
                updatedDate = in.readString();
                updatedUser = in.readString();
                shiftsId = in.readLong();
                shiftsDate = in.readString();
                routeName = in.readString();
                shiftsNo = in.readString();
                shiftsName = in.readString();
                businessOrgShortName = in.readString();
                scenicSpotsName = in.readString();
                projectShortName = in.readString();
                shipDockName = in.readString();
                leaveTime = in.readString();
                shipName = in.readString();
                shiftsCapacity = in.readInt();
                shiftsNature = in.readString();
                shipCapacity = in.readInt();
                stopSellTime = in.readInt();
                flag = in.readInt();
                flagStr = in.readString();
            }

            public static final Creator<DataListBean> CREATOR = new Creator<DataListBean>() {
                @Override
                public DataListBean createFromParcel(Parcel in) {
                    return new DataListBean(in);
                }

                @Override
                public DataListBean[] newArray(int size) {
                    return new DataListBean[size];
                }
            };

            public String getShiftsName() {
                return shiftsName;
            }

            public void setShiftsName(String shiftsName) {
                this.shiftsName = shiftsName;
            }

            public String getUpdatedDate() {
                return updatedDate;
            }

            public void setUpdatedDate(String updatedDate) {
                this.updatedDate = updatedDate;
            }

            public String getUpdatedUser() {
                return updatedUser;
            }

            public void setUpdatedUser(String updatedUser) {
                this.updatedUser = updatedUser;
            }

            public long getShiftsId() {
                return shiftsId;
            }

            public void setShiftsId(long shiftsId) {
                this.shiftsId = shiftsId;
            }

            public String getShiftsDate() {
                return shiftsDate;
            }

            public void setShiftsDate(String shiftsDate) {
                this.shiftsDate = shiftsDate;
            }

            public String getRouteName() {
                return routeName;
            }

            public void setRouteName(String routeName) {
                this.routeName = routeName;
            }

            public String getShiftsNo() {
                return shiftsNo;
            }

            public void setShiftsNo(String shiftsNo) {
                this.shiftsNo = shiftsNo;
            }

            public String getBusinessOrgShortName() {
                return businessOrgShortName;
            }

            public void setBusinessOrgShortName(String businessOrgShortName) {
                this.businessOrgShortName = businessOrgShortName;
            }

            public String getScenicSpotsName() {
                return scenicSpotsName;
            }

            public void setScenicSpotsName(String scenicSpotsName) {
                this.scenicSpotsName = scenicSpotsName;
            }

            public String getProjectShortName() {
                return projectShortName;
            }

            public void setProjectShortName(String projectShortName) {
                this.projectShortName = projectShortName;
            }

            public String getShipDockName() {
                return shipDockName;
            }

            public void setShipDockName(String shipDockName) {
                this.shipDockName = shipDockName;
            }

            public String getLeaveTime() {
                return leaveTime;
            }

            public void setLeaveTime(String leaveTime) {
                this.leaveTime = leaveTime;
            }

            public String getShipName() {
                return shipName;
            }

            public void setShipName(String shipName) {
                this.shipName = shipName;
            }

            public int getShiftsCapacity() {
                return shiftsCapacity;
            }

            public void setShiftsCapacity(int shiftsCapacity) {
                this.shiftsCapacity = shiftsCapacity;
            }

            public String getShiftsNature() {
                return shiftsNature;
            }

            public void setShiftsNature(String shiftsNature) {
                this.shiftsNature = shiftsNature;
            }

            public int getShipCapacity() {
                return shipCapacity;
            }

            public void setShipCapacity(int shipCapacity) {
                this.shipCapacity = shipCapacity;
            }

            public int getStopSellTime() {
                return stopSellTime;
            }

            public void setStopSellTime(int stopSellTime) {
                this.stopSellTime = stopSellTime;
            }

            public int getFlag() {
                return flag;
            }

            public void setFlag(int flag) {
                this.flag = flag;
            }

            public String getFlagStr() {
                return flagStr;
            }

            public void setFlagStr(String flagStr) {
                this.flagStr = flagStr;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(updatedDate);
                dest.writeString(updatedUser);
                dest.writeLong(shiftsId);
                dest.writeString(shiftsDate);
                dest.writeString(routeName);
                dest.writeString(shiftsNo);
                dest.writeString(businessOrgShortName);
                dest.writeString(scenicSpotsName);
                dest.writeString(projectShortName);
                dest.writeString(shipDockName);
                dest.writeString(leaveTime);
                dest.writeString(shipName);
                dest.writeInt(shiftsCapacity);
                dest.writeString(shiftsNature);
                dest.writeInt(shipCapacity);
                dest.writeInt(stopSellTime);
                dest.writeInt(flag);
                dest.writeString(flagStr);
                dest.writeString(shiftsName);
            }
        }
    }
}
